package com.spzx.channel.service.impl;

import com.spzx.channel.service.ProductService;
import com.spzx.common.core.constant.SecurityConstants;
import com.spzx.common.core.web.page.TableDataInfo;
import com.spzx.product.api.domain.ProductSku;
import com.spzx.product.api.domain.SkuQuery;
import com.spzx.product.api.service.RemoteProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {

    @Autowired
    private RemoteProductService remoteProductService;

    @Override
    public TableDataInfo getProductSkuList(Integer pageNo, Integer pageSize, SkuQuery skuQuery) {
        TableDataInfo tableDataInfo = remoteProductService.getProducctSkuList(pageNo, pageSize, skuQuery, SecurityConstants.INNER).getData();

        return  tableDataInfo;
    }
}
